import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // loginFlg:false
    loginFig:window.sessionStorage.getItem('userLogin') == 'true' ? true : false
  },
  mutations: {
    onLogin(state,lo){
      window.sessionStorage.setItem('userLogin',true)
      state.loginFig = lo
    }
  },
  actions: {
  },
  modules: {
  }
})
